import { createApp, VueElement } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
//Pinia 持久化存储 插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(pinia);
app.use(router);
app.mount("#app");
